HAL DMA2D migration: List of applicable concepts ¶
This section provides information about the HAL DMA2D applicable architecture concepts.
Concepts for DMA2D ¶
|
Concept |
Description |
|---|---|
|
The Initialization and the configuration has been split into 2 level functions:
|
|
|
Removal and conversion of init structure to configuration structure |
The initialization and layer configuration structures has been replaced by four configuration structures each tailored for a specific mode:
|
|
The handle structure has been renamed to
|
|
|
The functions
|
|
|
New APIs has been introduced to get and set DMA2D features. |
|
|
Individual callback registration APIs replace global register and unregister functions |
Specific functions manage callback registration for each DMA2D event, enabling the registration of callback functions for various DMA2D events. |
|
|
|
|
All hardware macros have been removed from the HAL DMA2D driver, and equivalent services are ensured through the LL APIs. |
|
|
The DMA2D Driver uses a state machine to manage its operations. The states are :
|
|
|
The HAL DMA2D functions were updated to return:
|
|
|
Rename the error management function to
|
|
|
All TypeDef parts of the HAL DMA2D driver have been removed and replaced by
|
|
|
The
|
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including DMA2D instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL DMA2D functions start with
|
Other HAL DMA2D changes ¶
|
Concept |
Consideration |
|---|---|
|
Remove obsolete functions. |
|
|
Split the
|
|